package cn.bobohost.order.feginclient;


import cn.bobohost.order.feginclient.impl.UserFeginClientImpl;
import cn.bobohost.order.pojo.ResultDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(
        value="week1pre-user"
        ,path = "/user"
        ,fallback = UserFeginClientImpl.class
)
public interface UserFeginClient {
    //发起post请求
    @PostMapping("/{pageNum}/{pageSize}")
    ResultDTO listPage(@RequestBody Map<String,Object> paramMap,
                       @PathVariable("pageNum") int pageNum,
                       @PathVariable("pageSize") int pageSize);

}
